<layout name="Layout/main" />
	<div class="panel-heading"><span ><a href="{:U('Rbc/addrole')}"  class="btn btn-success">添加角色</a></span></div>

	<!-- Table -->
	<table class="table  panel-body">
    
		<tr>
			<th>角色ID </th>
			<th>加色名称</th>
			<th>状态</th>
			<th>操作</th>
		</tr>
		<empty name='list'>
		<tr>
			<td colspan='4'>暂无数据 </td>
			
		</tr><else/>
		
		<volist name="list" id='vo'>
		<tr>
			<td>{$i} </td>
			<td>{$vo.name}</td>
			<td><if condition=" $vo['status'] eq 1" ><span class="glyphicon glyphicon-ok text-success"></span><else/><span class=' text-danger glyphicon glyphicon-remove
			'></span></if></td>
			<td>
			<a  class='btn  btn-xs btn-primary'  href="{:U('rbc/setrole',array('id'=>$vo['id']))}" title="配置权限 "><span  class="glyphicon glyphicon-wrench" ></span> 配置</a>
			<a  class='btn  btn-xs btn-danger' href="{:U('rbc/delrole',array('id'=>$vo['id']))}" title="删除角色"><span  class="glyphicon glyphicon-remove-sign " ></span> 刪除</a>
			<a  class='btn  btn-xs btn-info' href="{:U('rbc/editrole',array('id'=>$vo['id']))}" title="编辑角色 "><span  class="glyphicon glyphicon-edit " ></span> 编辑</a>
			
			<a  class='btn  btn-xs btn-warning'  href="{:U('rbc/role',array('id'=>$vo['id']))}" title="禁用角色 "><span  class="glyphicon glyphicon-ban-circle " ></span> 禁用</a>
			
			
			</td>
		</tr>
		</volist>
		</empty>
	</table>
